﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OAPlatform.DomainModel.Model;

namespace OAPlatform.DomainModel
{
    public interface IRepository<T> where T:IEntity
    {
        IQueryable<T> Items { get; }

        void Add(T item);

        void Remove(T item);

        void Save(T item);

        T FindById(int id);
    }
}
